<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="http://swf4.17c.cn/cloudfront/styles/admin.css" />
<style>
body{text-align:center;margin:0;padding:0}
input{height:20px;font-size:18px;width:100px}
.gift td{height:30px;overflow:hidden}
.gift td img{border:none;height;30px}
</style>
<title>Insert title here</title>
</head>
<body>

<table border="1" class="table">
  <tr>
    <th width="8%">房间ID </th>
    <th width="8%">房间名</th>
    <th width="5%">最大在玩数 </th> 
    <th width="5%">酒类</th>
    <th width="5%">醉酒度 </th>
    <th width="5%">进场携带数</th>
    <th width="5%">房间场次</th>
    <th width="5%">房间开关</th>
  </tr>

 <?php foreach($items as $v): ?>
  <tr>
    <td><a href="?rooms-edit?tid=<?php echo $v['tid']; ?>"><?php echo $v['tid']; ?></a></td>
    <td><?php echo $v['name'] ?></td>
    <td><?php echo $v['maxplayers'] ?></td>
    <td><?php echo $v['drunk_type'] ?></td>
    <td><?php echo $v['drunk_degree'] ?></td>
    <td><?php echo $v['stake'] ?></td>
    <td><?php echo $v['level'] == 1 ? '普通' : ( $v['level'] == 2 ? '中级' : ( $v['level'] == 3 ? '高级' : '' ) ); ?></td>
    <td><?php echo $v['switch'] ? '开' : '关' ?></td>
  </tr>
  <?php endforeach ?>
</table>

</body>
</html>